package com.zh.elec.service.impl;

import java.util.List;

import com.zh.elec.dao.ProductTypeDao;
import com.zh.elec.model.ProductType;
import com.zh.elec.service.ProductTypeService;

/**
 * 商品类型
 * @author scy
 *
 */
public class ProductTypeServiceImpl implements ProductTypeService {

	private ProductTypeDao productTypeDao;
	@Override
	public Object save(ProductType obj) {
		return productTypeDao.save(obj);
	}

	@Override
	public Object update(ProductType obj) {
		return productTypeDao.update(obj);
	}

	@Override
	public Object getObjById(ProductType obj) {
		return productTypeDao.getObjById(obj);
	}

	@Override
	public Object del(ProductType obj) {
		return productTypeDao.del(obj);
	}

	@Override
	public List<ProductType> findByHql(String hql) {
		return productTypeDao.findByHql(hql);
	}

	@Override
	public List<ProductType> findByName(String name, Object value) {
		return productTypeDao.findByName(name, value);
	}

	@Override
	public List<ProductType> findAll() {
		return productTypeDao.findAll();
	}
	public ProductTypeDao getProductTypeDao() {
		return productTypeDao;
	}

	public void setProductTypeDao(ProductTypeDao productTypeDao) {
		this.productTypeDao = productTypeDao;
	}
}
